/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.model;

//import teori1.*;

/**
 *
 * @author Roosz.OchyE
 */
public class Majalah extends Publikasi{

    private String ISSN;
    private int maxLamaPinjam =7;
    private int besarDenda = 5000;
    boolean isTerlambat;
    public void Majalah(){}

     public int HitungDenda(int inLamaPinjam) {
      int denda = 0;
        if (inLamaPinjam >= maxLamaPinjam) {
        denda = (inLamaPinjam - 8) * besarDenda;
       } else {
          denda = 0;
       }
          return denda;
    }
    public boolean IsTerlambat(int inLamaPinjam) {
        if (inLamaPinjam <= maxLamaPinjam){
            isTerlambat=false;
        } else
            isTerlambat=true;
       return isTerlambat;
    }
}
